/**
 * Pony
 *
 * @author		Allen Chou
 * @version		1.0.1 (last update: Aug 11 2008)
 * @link        http://cjcat.blogspot.com
 * @link		http://cjcat2266.deviantart.com
 */

package idv.cjcat.display.carousel {
	import flash.display.*;
	import flash.events.*;
	import flash.errors.IllegalOperationError;

	public class Pony extends Sprite {
		
		public var phase:Number;
		
		internal var _obj:DisplayObject;
		internal var _carousel:Carousel = null;
		internal var _depth:Number = 0;
		
		public function Pony(obj:DisplayObject, phase:Number = 0) {
			this.obj = obj;
			this.phase = phase;
		}
		
		public function get carousel():Carousel { return _carousel; }
		
		public function get obj():DisplayObject { return _obj; }
		public function set obj(value:DisplayObject):void {
			if (value == null) throw new IllegalOperationError("The obj property of a Pony object must not be null.");
			_obj = value;
		}
		
	}
}